package com.infore.dataStatistics.main.job;

import com.infore.common.constants.DataStatConstants;
import com.infore.common.utils.DateUtils;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class CalJob implements BaseJob {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        String time = DateUtils.getDateTime();
        String id = jobExecutionContext.getJobDetail().getJobDataMap().get(DataStatConstants.STAT_PARAM).toString();
        //这里为了演示, 只进行打印
        System.out.println(time + " 参数:" + id);
    }
}
